<template>
	<view><web-view :src="uurl" @message="eventMessage" @onPostMessage="eventPostMessage"></web-view></view>
</template>

<script>
	export default {
		data() {
			return {
				uurl: this.$store.state.payinfo.data
			};
		},
		methods: {
			eventMessage(e) {
				console.log('eventMessage', e);
			},
			eventPostMessage(e) {
				console.log('eventPostMessage', e.detail.data);
			}
		},
		onShow() {
			this.uurl = this.uurl;
		},
		onBackPress(options) {
			console.log('from:' + options.from)
		}
	};
</script>

<style></style>